<?php
/**
 * Author: Administrator
 * Date: 2022/7/23 2:13
 */

namespace DesignPatterns\Behavioral\State;


class CreatedOrder extends Order
{

    public function shipOrder()
    {
        $this->order->updateState('shipping');
    }

    public function completeOrder()
    {
        throw new \Exception('Wait for shipping');
    }
}